﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace PO_2011
{
    public partial class PopupFilterInput : Form
    {
        private String type;
        private Gimp gimp;

        public PopupFilterInput(Gimp gimp, String type)
        {
            InitializeComponent();
            this.type = type;
            this.gimp = gimp;
        }

        private void filter_button_creator_Click(object sender, EventArgs e)
        {
            this.gimp.imageBox.Image = Filter.Filter.create(new Bitmap(this.gimp.imageBox.Image), this.mask_array.Text.ToString(), 0);
            this.gimp.imageBox.Refresh();
            this.Close();
        }

    }
}
